package syswk.com.tanksgame;

/**
 * 作者：swk
 * 时间：
 * 公司：
 **/
@SuppressWarnings({"all"})
public class Bomb {
    public int x;
    public int y;
    public int life = 9;//生命周期
    public boolean isLife = true;//是否存活

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
        life = 9;
    }

    public void lifeDown() {
        if (life > 0) {
            life--;
        } else {
            isLife = false;
        }
    }
}
